﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Jackletter.BlendAuth
{
    /// <summary>
    /// 认证模型: 持久化到数据库
    /// </summary>
    public class BlendAuthModel
    {
        /// <summary>
        /// 认证token
        /// </summary>
        public string auth_token { get; set; }

        /// <summary>
        /// 认证的UserId
        /// </summary>
        public long auth_userid { get; set; }

        /// <summary>
        /// 标识当前登录到的系统
        /// </summary>
        public string auth_system { get; set; }

        /// <summary>
        /// 标识当前登录的客户端
        /// </summary>
        public string auth_client { get; set; }

        /// <summary>
        /// 登录时间
        /// </summary>
        public DateTime auth_login_time { get; set; }

        /// <summary>
        /// 上次刷新滑动窗口时间
        /// </summary>
        public DateTime auth_lastrefresh_time { get; set; }

        /// <summary>
        /// 滑动窗口起始时间
        /// </summary>
        public DateTime auth_slidingwindowstart_time { get; set; }

        /// <summary>
        /// 滑动窗口终止时间
        /// </summary>
        public DateTime auth_slidingwindowend_time { get; set; }
    }
}
